import Vue from 'vue'
import Vuex from 'vuex'
//import storeData
import globalUserState from './global/user/state'
import globalUserGetter from './global/user/getter'
import globalUserMutation from './global/user/mutaton'
import globalUserAction from './global/user/action'
//import infoModuleData
import infoMudule from './pages/info/infoModule'
import memberModule from './pages/member/memberModule'
import projectModule from './pages/project/projectModule'
import mainModule from './pages/main/mainModule'
import stateModule from './pages/state/stateModule'
import butlerModule from './pages/butler/butlerModule'
import jifenModule from './pages/jifen/jifenModule'

Vue.use(Vuex)
const isDev = process.env.NODE_ENV === 'development';
export default new Vuex.Store({
    strict: isDev,
    state: globalUserState,
    getters: globalUserGetter,
    mutations: globalUserMutation,
    actions: globalUserAction,
    modules: {
        info: infoMudule,
        member: memberModule,
        project: projectModule,
        main: mainModule,
        stateModule: stateModule,
        butlerModule: butlerModule,
        jifenModule: jifenModule
    }
})